﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using snat.model;
using System.IO;

namespace cmd {
    class Program {
        static void Main(string[] args) {

            NetworkModel.Instance.Init();
            DateTime date = NetworkModel.Instance.StartTime;
            List<int> rates = new List<int>();
            int i = 0;
            StreamWriter output = new StreamWriter("./enronMessageRates");
            while (date < NetworkModel.Instance.EndTime) {
                date = date.AddMonths(1);
                rates.Add(NetworkModel.Instance.Step(date));
                Console.WriteLine("Messages in month starting {0} = {1}", date.AddMonths(-1), rates[i]);
                output.Write(date.AddMonths(-1));
                output.WriteLine(","+rates[i]);
                i++;
            }

        }
    }
}
